package com.zte.claa.inficombo.csa.app.service.photo;

import java.io.IOException;

import com.zte.claa.inficombo.csa.app.service.photo.bean.PhotoDataModel;
import com.zte.claa.inficombo.csa.app.service.photo.bean.PhotoFileBaseInfo;
import com.zte.claa.inficombo.csa.app.service.photo.bean.PhotoFileHBInfo;
import com.zte.claa.inficombo.csa.app.service.photo.bean.PhotoFragPacket;

/*
 * Author by 0283000106 
 */
public interface PhotoDataDealService{
	
	// 根据sensoreui创建新的图片对象
	public PhotoDataModel createPhotoDataModel(String sensoreui);
	
	// 根据图片文件基本信息创建图片对象
	public PhotoDataModel dealAIDBaseInfo(String sensoreui, PhotoFileBaseInfo photebase);
	
	// 兼容心跳信息创建图片对象
	public PhotoDataModel dealAIDHeartBeatMsg(String sensoreui, PhotoFileHBInfo photohb);
	
	// 插入图片分片数据包
	public boolean insertPhotoFragPacket(String sensoreui, PhotoFragPacket fragPacket);
	
	// 根据sensoreui获取分片bitmap数据
	public byte[] getPhotoFragBitMap(String sensoreui);
	
	// 根据sensoreui判断分片是否接收完成
	public boolean isPhotoComplete(String sensoreui);
	
	// 根据sensoreui判断分片是否接收完成
	public boolean genPhotoFile(String sensoreui) throws IOException;
	
	// 根据sensoreui删除图片对象
	public boolean deletePhotoDataModel(String sensoreui);
}
